import Layout from '@/views/layout.vue'
import Detail from '@/views/article-detail.vue'

import Shouye from '@/views/shouye.vue'
import Zhaofang from '@/views/zhaofang.vue'
import Zixun from '@/views/zixun.vue'
import Wode from '@/views/wode.vue' 	

const routes = [

    { path: '/', component: Layout, redirect:'shouye',
    //配置二级
    children: [
        {path:'shouye',component:Shouye},
        {path:'zhaofang',component:Zhaofang},
        {path:'zixun',component:Zixun},
        {path:'wode',component:Wode},
    ]},
    { name: 'detail', path: '/Detail', component: Detail },
]

export default routes